from django.conf.urls.defaults import *
from django.contrib import admin
from sorting.models import List, ListMembership, Sorting, Item, SortDelta

class ListMembershipInline(admin.StackedInline):
    model = ListMembership
    extra = 3
	
class ListAdmin(admin.ModelAdmin):
    inlines = [
        ListMembershipInline,
    ]

class ItemInline(admin.StackedInline):
    model = Item
    extra = 3
	
class SortingAdmin(admin.ModelAdmin):
    inlines = [
        ItemInline,
    ]

admin.site.register(List, ListAdmin)
admin.site.register(Sorting, SortingAdmin)
admin.site.register(SortDelta)
